//
//  Target_WebView.m
//  HHPLiveVideo
//
//  Created by 韩红坡 on 2017/2/21.
//  Copyright © 2017年 韩红坡. All rights reserved.
//

#import "Target_WebView.h"
#import "HHPWebViewController.h"

@implementation Target_WebView

- (void)Action_pushWebViewControllerWithDictionary:(NSDictionary *)dict
{
    HHPWebViewController *webVC = [[HHPWebViewController alloc] init];
    
    if (dict[@"urlString"]) {
        [webVC loadHtmlString:dict[@"urlString"] withTitle:dict[@"title"]];
    } else {
        [webVC loadAbsoluteHtmlString:dict[@"absoluteUrlString"] withTitle:dict[@"title"]];
    }
    
    [self.currentVC.navigationController pushViewController:webVC animated:YES];
}

@end
